<!DOCTYPE html>
<html>
<head>
    <title>字典管理</title>
    <#include "/header.html">
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="!showList" class="panel panel-default">
        <div class="panel-heading">{{title}}</div>
        <form class="form-horizontal">
            <div class="form-group">
                <div class="col-sm-2 control-label">基础路径</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="messageCodeGenerator.basePath" placeholder="基础路径"/>
                </div>
            </div>
            <div class="form-group">
                <div v-for="(subPath,index) in subPathList">
                <div class="col-sm-2 control-label">{{subPath.label}}</div>
                <div class="col-sm-8">
                    <input type="text" name="subPaths1" class="form-control" v-model="messageCodeGenerator.subPaths[index]" placeholder="子路径"/>
                </div>
                <div class="col-sm-1">
                    <a class="btn btn-default" @click="deleteSubPath(index)">删除</a>
                </div>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label"></div>
                <div class="col-sm-10">
                    <a class="btn btn-default" @click="addSubPath">增加</a>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">资源类型</div>
                <div class="col-sm-10">
                    <label class="radio-inline" v-for="type in typeList">
                        <input type="radio" name="type"  :value="type.value" v-model="messageCodeGenerator.type"/> {{type.label}}
                    </label>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">目标语言</div>
                <div class="col-sm-10">
                    <label v-for="language in languageTypeList" class="checkbox-inline">
                        <input type="checkbox" :value="language.value" v-model="messageCodeGenerator.languageTypeList"/> {{language.label}}
                    </label>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">翻译方式</div>
                <div class="col-sm-10">
                    <label class="radio-inline" v-for="translateType in translateTypeList">
                        <input type="radio" name="translateType"  :value="translateType.value" v-model="messageCodeGenerator.translateType"/> {{translateType.label}}
                    </label>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">备份文件</div>
                <div class="col-sm-10">
                    <label class="checkbox-inline">
                        <input type="checkbox" v-model="messageCodeGenerator.backupFile"/> 备份文件
                    </label>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">生成新文件</div>
                <div class="col-sm-10">
                    <label class="checkbox-inline">
                        <input type="checkbox" v-model="messageCodeGenerator.generateNewFile"/> 生成新文件
                    </label>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">生成properties文件</div>
                <div class="col-sm-10">
                    <label class="checkbox-inline">
                        <input type="checkbox" v-model="messageCodeGenerator.generatePropertiesFile"/> 生成properties文件
                    </label>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">覆盖原始文件</div>
                <div class="col-sm-10">
                    <label class="checkbox-inline">
                        <input type="checkbox" v-model="messageCodeGenerator.replaceFile"/> 覆盖原始文件
                    </label>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label"></div>
                <input type="button" class="btn btn-primary" @click="save" value="确定"/>
            </div>
        </form>
    </div>
</div>

<script src="${request.contextPath}/static/js/modules/code/messageCodeGenerator.js?_${.now?long}"></script>
</body>
</html>